home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / DEPOSITO / REmovido / Esportes / FunSurfing.swf / scripts / DefineSprite_129 / frame_1 / DoAction.as
Text File  |  2006-06-13  |  2KB  |  56 lines

  1. ox1 = getProperty("../surfman", _X) - "25";
  2. ox2 = getProperty("../surfman", _X) + "25";
  3. oy1 = getProperty("../surfman", _Y) - "25";
  4. oy2 = getProperty("../surfman", _Y) + "20";
  5. if(ox1 < getProperty("../bird-1", _X) and getProperty("../bird-1", _X) < ox2 and oy1 < getProperty("../bird-1", _Y) and getProperty("../bird-1", _Y) < oy2)
  6. {
  7.    setProperty("../bird-1", _X, "550");
  8.    gotoAndStop(10);
  9. }
  10. if(ox1 < getProperty("../bird-2", _X) and getProperty("../bird-2", _X) < ox2 and oy1 < getProperty("../bird-2", _Y) and getProperty("../bird-2", _Y) < oy2)
  11. {
  12.    setProperty("../bird-2", _X, "550");
  13.    gotoAndStop(10);
  14. }
  15. if(ox1 < getProperty("../wood-1", _X) and getProperty("../wood-1", _X) < ox2 and oy1 < getProperty("../wood-1", _Y) and getProperty("../wood-1", _Y) < oy2)
  16. {
  17.    setProperty("../wood-1", _X, "550");
  18.    gotoAndStop(10);
  19. }
  20. if(ox1 < getProperty("../wood-2", _X) and getProperty("../wood-2", _X) < ox2 and oy1 < getProperty("../wood-2", _Y) and getProperty("../wood-2", _Y) < oy2)
  21. {
  22.    setProperty("../wood-2", _X, "550");
  23.    gotoAndStop(10);
  24. }
  25. if(getProperty("../shark-1", _X) < ox2 and ox1 < getProperty("../shark-1", _X) and oy1 < getProperty("../shark-1", _Y) and getProperty("../shark-1", _Y) < oy2)
  26. {
  27.    setProperty("../shark-1", _X, "550");
  28.    gotoAndStop(10);
  29. }
  30. if(getProperty("../shark-2", _X) < ox2 and ox1 < getProperty("../shark-2", _X) and oy1 < getProperty("../shark-2", _Y) and getProperty("../shark-2", _Y) < oy2)
  31. {
  32.    setProperty("../shark-2", _X, "550");
  33.    gotoAndStop(10);
  34. }
  35. if(ox1 < getProperty("../surfer", _X) and getProperty("../surfer", _X) < ox2 and oy1 < getProperty("../surfer", _Y) and getProperty("../surfer", _Y) < oy2)
  36. {
  37.    setProperty("../surfer", _X, "550");
  38.    gotoAndStop(10);
  39. }
  40. if(ox1 < getProperty("../bottle-1", _X) and getProperty("../bottle-1", _X) < ox2 and oy1 < getProperty("../bottle-1", _Y) + "10" and getProperty("../bottle-1", _Y) + "10" < oy2)
  41. {
  42.    setProperty("../bottle-1", _X, "550");
  43.    tellTarget("../score")
  44.    {
  45.       gotoAndPlay(2);
  46.    }
  47. }
  48. if(ox1 < getProperty("../bottle-2", _X) and getProperty("../bottle-2", _X) < ox2 and oy1 < getProperty("../bottle-2", _Y) and getProperty("../bottle-2", _Y) < oy2)
  49. {
  50.    setProperty("../bottle-2", _X, "550");
  51.    tellTarget("../score")
  52.    {
  53.       gotoAndPlay(2);
  54.    }
  55. }
  56.